package com.icefish.dao;

import com.icefish.bean.Comment;

import java.sql.SQLException;
import java.util.ArrayList;

public interface CommentDao {
    //根据商品Id获取商品信息
    public ArrayList<Comment> selectCommentByGoodId(Integer goods_id) throws Exception;

    // 添加评论数据
    public Boolean addComment (Comment comment) throws SQLException;

    // 根据order_id获取评论信息
    public boolean selectHasCommentByOrderId (Integer order_id) throws Exception;

    // 根据根据order_id 修改 评论信息
    public boolean updateSaysByOrderId (Integer order_id, String says) throws Exception;
}
